package com.ruoyi.marketing.domain;


import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import com.ruoyi.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 活动奖励明细对象 award_detail
 *
 * @author hao
 * @date 2023-01-31
 */
@TableName("award_detail")
@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class AwardDetail extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    @TableField("id")
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    @TableField("user_id")
    private Long userId;

    /** 任务id */
    @Excel(name = "任务id")
    @TableField("task_id")
    private Long taskId;

    /** 任务 */
    @TableField(exist = false)
    private MarketingTask task;


    /** 时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "时间", width = 30, dateFormat = "yyyy-MM-dd")
    @TableField("award_time")
    private Date awardTime;

    /** 奖励id */
    @Excel(name = "奖励id")
    @TableField("award_id")
    private String awardId;

    /** 奖励 */
    @TableField(exist = false)
    private MarketingAward marketingAward;



    /** 领取方式 */
    @Excel(name = "领取方式")
    @TableField("pickup")
    private Long pickup;

    /** 状态 */
    @Excel(name = "状态")
    @TableField("state")
    private Long state;

}
